package com.ivsign.lib_idcardidentification;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * @description :
 * @autHor :  Jason
 * @date : 2018/8/18 13:33
 */

public class ProgressResult implements Parcelable {

    private int progress;
    private int command;

    public ProgressResult(int progress, int command) {
        this.progress = progress;
        this.command = command;
    }

    public int getProgress() {
        return progress;
    }

    public void setProgress(int progress) {
        this.progress = progress;
    }

    public int getCommand() {
        return command;
    }

    public void setCommand(int command) {
        this.command = command;
    }

    @Override

    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.progress);
        dest.writeInt(this.command);
    }

    public ProgressResult() {
    }

    protected ProgressResult(Parcel in) {
        this.progress = in.readInt();
        this.command = in.readInt();
    }

    public static final Creator<ProgressResult> CREATOR = new Creator<ProgressResult>() {
        @Override
        public ProgressResult createFromParcel(Parcel source) {
            return new ProgressResult(source);
        }

        @Override
        public ProgressResult[] newArray(int size) {
            return new ProgressResult[size];
        }
    };
}
